﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApplicantCreditCheck.aspx.cs" Inherits="CRMWeb.Pages.ApplicantCreditCheck" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <script type="text/javascript">
        $(document).ready(function () {
            $.ajax({
                url: '/WebServices/ApplicantCreditCheck.ashx?method=PrepareDataGrid',
                contentType: 'application/json; charset=utf-8',
                data: { 'app_id': getQuerystring('app_id', ''), 'CreatedDate': '', 'FullName': '', 'VedafileNo': '', 'RecordAge': '', 'Createby': '' },
                success: function (data) {
                    $("#customdg").html(data);
                }
            });
        });
        function OpenVedaCheckDialog(ContactID, VedafileNO) {
            PopupWindowCenter("/Pages/Application/VedaClientProfile.aspx?ContactID=" + ContactID + "&app_id=" + getQuerystring('app_id', '') + "&VedafileNO=" + VedafileNO, "Veda Credit Check", 515, window.innerHeight);
        }
        function PopupWindowCenter(URL, title, w, h) {
            var left = (screen.width / 2) - (w / 2);
            var top = (screen.height / 2) - (h / 2);
            var strfeatures = 'width=' + w + ', height= ' + h + ', top=' + top + ',left=' + left;
            var newWin = window.open(URL, title, strfeatures);
            newWin.onload = function () { window.focus(); }
        }
        function mouseOverColor(rowid) {
            $('#' + rowid).css('background', '#9CC8F7');
            $('#' + rowid).css('color', '#404040');
        }
        function rowSelectedcolor(rowid) {
            $('#' + rowid).css('background', '#6CAEF5');
            $('#' + rowid).css('color', '#FFFFFF');
        }
        function mouseOutColor(rowid) {
            $('#' + rowid).css('background', '#fafafa');
            $('#' + rowid).css('color', '#404040');
        }
    </script>
    <div id="customdg" style="width: auto; height: auto">
    </div>
</body>
</html>
